
Page({
  data: {
    bannerSwiperConfig: getApp().globalData.bannerSwiperConfig,
    phone: '18530887356',
    list: {
      productList: [
        {
          image:"http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/chugui/%E5%90%95%E7%A7%80%E6%89%8D3_%E5%89%AF%E6%9C%AC.jpg",
          title:"橱柜系列",
          sid:'sid1'
        },
        {
          image: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/yushigui/022_%E5%89%AF%E6%9C%AC.jpg",
          title: "浴室柜系列",
          sid: 'sid2'
        },
        {
          image: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/jiuguishugui/%E6%A0%BC%E5%88%A9%E6%81%A99.jpg",
          title: "酒柜系列",
          sid: 'sid3'
        },
        { 
          image: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/chazhuozhuozi/%E6%A0%BC%E5%88%A9%E6%81%A912.jpg",
          title: "茶桌柜系列",
          sid: 'sid4'
        },
        {
          image: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/yigui/%E6%9F%9C%E8%BE%BE%E4%BA%BA014.jpg",
          title: "衣柜系列",
          sid: 'sid5'
        },
        {
          image: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/dianshigui/%E9%9F%A9%E6%B4%BE7_%E5%89%AF%E6%9C%AC.jpg",
          title: "电视柜系列",
          sid: 'sid6'
        },
        {
          image: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/xiegui/%E9%93%9D%E5%AE%B6%E5%AE%9D28.jpg",
          title: "鞋柜系列",
          sid: 'sid7'
        },
        {
          image: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/changpingxilie/yantaigui/%E5%85%A8%E9%93%9D%E9%98%B3%E5%8F%B0%E6%9F%9C_%E5%89%AF%E6%9C%AC.jpg",
          title: "阳台柜系列",
          sid: 'sid8'
        }
      ],
      serviceList: [
        {
          icon: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/%E6%9F%9C%E8%BE%BE%E4%BA%BA007.jpg",
          title: "公司介绍",
          sid: 'sid1'
        },
        {
          icon: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/%E6%9F%9C%E8%BE%BE%E4%BA%BA017.jpg",
          title: "企业荣誉",
          sid: 'sid2'
        },
        {
          icon: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/%E6%9F%9C%E8%BE%BE%E4%BA%BA019.jpg",
          title: "产品展示",
          sid: 'sid3'
        },
        {
          icon: "http://jmnhgw.oss-cn-beijing.aliyuncs.com/changpin/%E6%A0%BC%E5%88%A9%E6%81%A915.jpg",
          title: "联系我们",
          sid: 'sid4'
        }
      ]
    } 
  },
  onLoad: function () {
    // this.setData({
    //   list.productList
    // })  
  }, 
  productTitle: function (e) {
    var id = e.currentTarget.id;
    if (id == 'sid1') {
      wx.navigateTo({
        url: '../jieshao/jieshao',
      })
    }
    if (id == 'sid2') {
      wx.navigateTo({
        url: '../rongyu/rongyu',
      })
    }
    if (id == 'sid3') {
      wx.navigateTo({
        url: '../productList/productList',
      })
    }
    if (id == 'sid4') {
      wx.navigateTo({ 
        url: '../lianxi/lianxi',
      })
    }
  },
  productHtml:function(e){
    var sid = e.currentTarget.id;
    if (sid =='sid1'){
      wx.navigateTo({
        url:'../chugui/chugui',
      })
    }
    if (sid == 'sid2') { 
      wx.navigateTo({
        url: '../yushigui/yushigui',
      })
    }
    if (sid =='sid3') {
      wx.navigateTo({
        url: '../jiugui/jiugui',
      })
    }
    if (sid =='sid4') {
      wx.navigateTo({
        url: '../chazhuo/chazhuo',
      })
    }
    if (sid =='sid5') {
      wx.navigateTo({
        url: '../yigui/yigui',
      })
    }
    if (sid =='sid6') {
      wx.navigateTo({
        url: '../dianshigui/dianshigui',
      })
    }
    if (sid =='sid7') {
      wx.navigateTo({
        url: '../xiegui/xiegui',
      })
    }
    if (sid =='sid8') {
      wx.navigateTo({
        url: '../yangtaigui/yangtaigui',
      })
    }
  },
  locationViewTap: function () {
    wx.navigateTo({
      url: '../location/location'
    })
  },
  // 拨打热线电话
  makePhoneCall: function () {
    wx.makePhoneCall({
      phoneNumber: this.data.phone
    });
  },
    openMap: function () {
    wx.openLocation({
      latitude: 34.511216,
      longitude: 113.778181,
      name: "河南省郑州市中德产业园4号1栋",
      scale: 14
    });
  },
    dingzhi:function(){
      wx.navigateTo({
        url: '../dingzhi/dingzhi'
      })
    }
});
